package com.itheima.operator;
import java.util.Scanner;
public class chuantouxing {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入月份");
        int a = sc.nextInt();
        switch (a){
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                System.out.println(a+"月份有31天");
                break;
            case 2:
                System.out.println(a+"月份有29天");
                break;
            default:
                System.out.println("你输入的有误");
        }
    }

}
